import http from "@/config/request";

/** 首页获取网站config */
export const homeGetConfig = () => {
  return new Promise((resolve, reject) => {
    http.get("/api/config", {}).then((res) => {
      resolve(res);
    });
  });
};

/** 增加网站访问量 */
export const addView = () => {
  return {
    code: 0,
    message: "增加访问量成功",
    result: "添加成功",
  }
};

/** 获取所有的背景图片 */
export const getAllPageHeader = () => {
  return {
    code: 0,
    message: "",
    result: [{
      bg_url: "http://img.mrzym.top/FlFlA2XjKkwPD4lRlFwxZc4mUsLt",
      id: 8,
      route_name: "Archives"
    }]
  }
};
